package com.zhuozhengsoft.pageoffice6springboot2back.controller;

import com.zhuozhengsoft.pageoffice.OpenModeType;
import com.zhuozhengsoft.pageoffice.PageOfficeCtrl;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;


import javax.servlet.http.HttpServletRequest;


@RestController
@RequestMapping(value = "/WordCompare")
public class WordCompareController {

    @RequestMapping(value = "/Word")
    public String showWord(HttpServletRequest request) {
        PageOfficeCtrl poCtrl = new PageOfficeCtrl(request);
        //poCtrl.wordCompare("doc/aaa1.docx", "doc/aaa2.docx", OpenModeType.docReadOnly, "张三");
        poCtrl.wordCompare("/doc/WordCompare/aaa1.docx", "/doc/WordCompare/aaa2.docx", OpenModeType.docAdmin, "张三");

        return poCtrl.getHtmlCode();
    }


}
